import { AddressModel } from "./Address";
import { ImageModel } from "./Image";
import { StoreModel } from "./Store";


interface User {
    uid: number;
    username: string;
    password: string;
    phoneNumber: string;
    email: string;
    description: string;
    pay?: string;
    isAdmin?: number;
    integral?: number;
    stores?: StoreModel;
    image?: ImageModel;
    address?: AddressModel
};

export class UserModel implements User {
    uid!: number;
    username!: string;
    password!: string;
    phoneNumber!: string;
    email!: string;
    description!: string;
    pay?: string | undefined;
    isAdmin?: number | undefined;
    integral?: number | undefined;
    stores?: StoreModel | undefined;
    image?: ImageModel | undefined;
    address?: AddressModel | undefined;
}